{include file='header.tpl'}

<h1 class="page-header">Lista de Fotos</h1>
<h3 class="page-header">{$album}</h3>
<div class="row">
    <p><b>Legenda</b></p>
    <p>
        <i class="iconbig-delete1"></i> - Apagar Imagem <i class="iconbig-edit1"></i> - Desabilita Imagem<br />
        <i class="iconbig-disabled"></i> - Habilita Imagem <i class="iconbig-lovedesign"></i> - Define Imagem como Capa do Album
    </p>
</div>
<div class="row">
    <form class="form-horizontal" id="foto" name="foto">
        <div id="queue"></div>
        <ul class="form-group panel panel-group list-unstyled">
            <li class="form-control-static">
                <input id="file_upload" name="file_upload" type="file" multiple="true">
            </li>             
        </ul>
    </form>
</form>
</div>
<div class="row" id="lista_fotos">
    {$dados}
</div>   
{literal}
    <script src="js/jquery.uploadify.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            $(".accordion").accordion("option", "active", 2);
            $(function() {
                $('#file_upload').uploadify({
                    formData: {
                        acao: 'uploadImages',
                        id_album: '{/literal}{$id_album}{literal}'
                    },
                    buttonText: 'Upload',
                    swf: 'uploadify.swf',
                    uploader: 'acao.php',
                    onUploadSuccess: function() {
                        Load('acao.php?acao=listaFotoAjax&id_album={/literal}{$id_album}{literal}', 'lista_fotos')
                    }
                });
            });
        });
    </script>

{/literal}
{include file='footer.tpl'}